@white: #ffffff;
@gray: #CCCCCC;
@dgray: #333333;
@back: #000000;
.wh(@w: 100px, @h: 100%) {
    width: @w;
    height: @h;
}

.border-radius(@r: 0) {
    -webkit-border-radius: @r;
    -moz-border-radius: @r;
    border-radius: @r;
}

.transition(@a: all, @t: .3s) {
    -webkit-transition: @a @t;
    -moz-transition: @a @t;
    -ms-transition: @a @t;
    transition: @a @t;
}

.background(@d: 320deg, @c1: #00c4ff, @c2: #3fbba2) {
    background: @c1;
    background: -webkit-linear-gradient(@d, @c1, @c2);
    background: -o-linear-gradient(@d, @c2, @c1);
    background: -moz-linear-gradient(@d, @c2, @c1);
}

.font(@s: 14px, @a: center, @c: @gray) {
    font-size: @s;
    text-align: @a;
    color: @c;
}

html,
body {
    width: 100%;
    height: auto;
    background-color: @white;
}

.html {
    height: 100%;
}

.body-euditor {
    height: 100%;
    zoom: 1;
    overflow: hidden;
}

.body {
    min-height: 100%;
    line-height: 16px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    background: url(../img/timg.jpg) center no-repeat;
    background-size: 100% 100%;
}

.padding {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.clearfix {
    *zoom: 1;
    &:after {
        display: table;
        line-height: 0;
        height: 1px;
        content: "";
        clear: both;
    }
}

.container {
    width: 970px;
    height: auto;
    margin: 0 auto;
    padding: 0;
}

.lg-size {
    font-size: 24px !important;
    line-height: 45px;
}

.header {
    >a {
        display: block;
        float: right;
        .wh(auto, 45px);
        line-height: 45px;
        .font(16px, center, @white);
        padding: 0 10px;
        &:first-child {
            float: left;
        }
    }
    >.dropdown {
        float: right;
        width: auto;
        height: 45px;
        padding: 0 10px;
        >a {
            display: block;
            width: 100%;
            height: 45px;
            line-height: 45px;
            padding: 0 10px;
            color: @white;
        }
    }
    .form-search {
        float: right;
        position: relative;
        .wh(15%, auto);
        margin: 0;
        padding: 5px 0;
        .transition();
        input {
            width: 100%;
            height: 35px;
            line-height: 15px;
            font-size: 14px;
            background-color: rgba(0, 0, 0, 0);
            margin: 0;
            padding: 10px 40px 10px 20px;
            outline: none;
            border: 1px solid @gray;
            -webkit-appearance: none;
            .border-radius(20px);
        }
        a {
            position: absolute;
            top: 5px;
            right: 0;
            .wh(40px, 40px);
            line-height: 40px;
            text-align: center;
            color: @dgray;
        }
    }
    .form-search-act {
        float: right;
        position: relative;
        .wh(25%, auto);
        margin: 0;
        padding: 5px 0;
        .transition();
        input {
            width: 100%;
            height: 35px;
            line-height: 15px;
            font-size: 14px;
            background-color: @white;
            margin: 0;
            border: 1px solid @gray;
            outline: none;
            -webkit-appearance: none;
            padding: 10px 40px 10px 20px;
            .border-radius(20px);
        }
        a {
            position: absolute;
            top: 5px;
            right: 0;
            .wh(40px, 40px);
            line-height: 40px;
            text-align: center;
            color: @dgray;
        }
    }
    .user-header {
        position: relative;
        float: right;
        .wh(auto, 45px);
        padding: 5px;
        .login-out {
            display: block;
            float: left;
            line-height: 35px;
            color: @white;
            font-size: 16px;
            margin-left: 10px;
        }
        .login-success {
            display: none;
        }
        img {
            .wh(35px, 35px);
            .border-radius(20px);
        }
    }
    >button[type='button'] {
        position: absolute;
        right: 30px;
        top: 5px;
    }
}

.jy-logo {
    box-sizing: border-box;
    display: block;
    .wh(auto, 45px);
    padding: 5px;
}

.jy-blue {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    .background();
    padding: 0 15px;
    box-shadow: 0 0 5px #000000;
    z-index: 999;
}

.after-img {
    position: absolute;
    top: 10px;
    left: 10px;
    content: '';
    .wh(50px, 40px);
}

.after-img1 {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 33px;
    height: 33px;
}

.jy-content {
    margin-top: 50px;
}

.content-main {
    float: left;
    position: relative;
    width: 100%;
    height: auto;
    >ul {
        margin: 0;
        padding: 15px 0;
    }
    li {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        list-style: none;
        &:before {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            content: "";
            width: 100%;
            height: 1px;
            background-color: @gray;
        }
    }
    li>div:first-child {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px 100px 0 50px;
        img {
            display: block;
            position: absolute;
            top: 20px;
            left: 0;
            width: 40px;
            height: 40px;
            .border-radius(50%);
        }
        a {
            display: block;
            width: auto;
            height: 40px;
            line-height: 40px;
            .font(14px, left, @dgray);
            padding: 0 10px;
        }
        span {
            position: absolute;
            top: 20px;
            right: 0;
            line-height: 40px;
            .font(14px, right, #888888);
        }
    }
    li>div:nth-child(2) {
        position: relative;
        width: 100%;
        height: auto;
        padding-top: 10px;
        padding-right: 110px;
        a {
            display: block;
            color: @dgray;
            font-weight: bold;
            padding: 0;
        }
        p {
            display: block;
            width: 100%;
            height: auto;
            margin-bottom: 0;
            padding: 10px 0;
        }
        img {
            display: block;
            position: absolute;
            top: 10px;
            right: 0;
            width: 100px;
            height: 100px;
        }
    }
    li>div:nth-child(3) {
        width: 100%;
        height: auto;
        padding: 10px 0;
        a {
            display: block;
            position: relative;
        }
        a:first-child {
            float: left;
            line-height: 14px;
            .font(12px, center, @white);
            .background();
            .border-radius(3px);
            padding: 5px 10px;
        }
        a:nth-child(2),
        a:nth-child(3),
        a:nth-child(4) {
            float: right;
            line-height: 16px;
            .font(14px, center, #818181);
            padding: 5px 5px 5px 25px;
            &:before {
                content: "";
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                width: 26px;
                height: 26px;
                background-repeat: no-repeat;
                background-size: 14px 14px;
                background-position: center;
            }
        }
        a:nth-child(2):before {
            background-image: url(../img/look.png);
        }
        a:nth-child(3):before {
            background-image: url(../img/comment.png);
        }
        a:nth-child(4):before {
            background-image: url(../img/collect.png);
        }
    }
}

.content-card {
    padding: 15px 0;
    .card {
        position: relative;
        float: left;
        border: 1px solid #00C4FF;
        border-radius: 3px;
        padding: 5px 10px 5px 50px;
        margin: 0 10px 10px 0;
        &:before {
            position: absolute;
            top: 0;
            left: 0;
            width: 40px;
            height: 40px;
            content: "";
        }
    }
    .card:first-child {
        background: url(../img/camera.png) no-repeat;
        background-size: 40px 40px;
    }
    .card:nth-child(2) {
        background: url(../img/camera.png) no-repeat;
        background-size: 40px 40px;
    }
    .card:nth-child(3) {
        background: url(../img/camera.png) no-repeat;
        background-size: 40px 40px;
    }
    .card:nth-child(4) {
        background: url(../img/camera.png) no-repeat;
        background-size: 40px 40px;
    }
    .card:nth-child(5) {
        background: url(../img/camera.png) no-repeat;
        background-size: 40px 40px;
    }
}
.border-radius{
    border-radius: 50%;
}
.content-card-r {
    width: 100%;
    height: auto;
    padding: 15px;
    float: right;
    .card {
        position: relative;
        width: 100%;
        height: 50px;
        line-height: 50px;
        cursor: pointer;
        .font(18px, center, @white);
        .border-radius(10px);
        margin-bottom: 20px;
        .background();
        opacity: .6;
        .transition();
        &:after {
            .after-img;
            background-size: 50px auto;
            background-repeat: no-repeat;
        }
        &:first-child {
            .background(320 deg, #d200ff, #5f45b5);
            &:after {
                background-image: url(../img/toph.png);
            }
        }
        &:nth-child(2) {
            .background(320deg, #07ff54, #008827);
            &:after {
                background-image: url(../img/daily.png);
            }
        }
        &:nth-child(3) {
            .background(320deg, #ffd84a, #c37a00);
            &:after {
                background-image: url(../img/fire.png);
            }
        }
        &:nth-child(4) {
            .background(320 deg, #ff7979, #c30000);
            &:after {
                background-image: url(../img/hot.png);
            }
        }
        &:hover {
            opacity: 1;
            .transition();
        }
    }
}

.user-info {
    position: relative;
    width: 100%;
    height: auto;
    padding-left: 90px;
    padding-top: 20px;
    padding-bottom: 20px;
    img {
        display: block;
        position: absolute;
        left: 0;
        top: 20px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }
    a {
        display: block;
        height: 30px;
        line-height: 30px;
        font-size: 24px;
    }
    div {
        width: 100%;
        height: 50px;
    }
    ul {
        margin: 0;
        padding: 0;
    }
    li {
        position: relative;
        float: left;
        list-style: none;
        width: 4em;
        height: 50px;
        line-height: 25px;
        text-align: center;
    }
    i {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 25px;
        text-align: center;
        font-style: normal;
    }
}

.tab-content {
    min-height: 400px;
}

.jy-msg {
    width: 100%;
    height: auto;
    >.jy-msg-user {
        position: relative;
        width: 100%;
        height: 40px;
        margin: 10px 0;
        padding: 0 0 0 50px;
        img {
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        span {
            line-height: 40px;
            color: #CCCCCC;
        }
    }
    .jy-msg-card {
        width: 100%;
        height: auto;
        border: 1px solid #CCCCCC;
        border-radius: 5px;
        background-color: #e1e1e1;
        padding: 15px;
        .jy-card-user {
            position: relative;
            width: 100%;
            height: 50px;
            padding: 0 70px 0 50px;
            .card-username {
                display: block;
                height: 30px;
                line-height: 30px;
                font-size: 18px;
            }
            p {
                height: 20px;
                line-height: 20px;
                color: #969696;
            }
            img {
                display: block;
                position: absolute;
                left: 0;
                top: 5px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
            }
            .follow-btn {
                position: absolute;
                right: 0;
                top: 5px;
                width: 70px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                border-radius: 20px;
                border: 1px solid #CCCCCC;
            }
        }
        .jy-article {
            position: relative;
            width: 100%;
            height: auto;
            margin-top: 20px;
            padding: 20px 0;
            &:before {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 1px;
                background: #CCCCCC;
                content: "";
            }
        }
    }
}

.jy-like {
    a {
        box-sizing: border-box;
        position: relative;
        display: block;
        width: 100%;
        height: 40px;
        line-height: 30px;
        padding: 5px 10px 5px 50px;
    }
    span {
        position: absolute;
        top: 5px;
        left: 0;
        width: 30px;
        height: 30px;
        background: #0062CC;
    }
    p {
        position: relative;
        width: 100%;
        padding: 15px 0;
    }
    p:before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background: #C0C0C0;
        content: "";
    }
}

.jy-white {
    background-color: @white;
}

.jy-back {
    background-color: #3f3f3f;
}
.jy-font-green{
    color:#008827;
    border-color: #008827;
}
.navbar {
    position: fixed;
    width: 33.333%;
}

.nav-pills>li {
    float: none;
}

.basics {
    position: relative;
    width: 100%;
    min-height: 65px;
    height: auto;
    padding: 10px 0 10px 200px;
    img {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 80px;
        height: 80px;
        display: block;
        margin: 0;
        padding: 0;
        border-radius: 50%;
    }
    span {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 100px;
        height: 40px;
        line-height: 40px;
        display: block;
        margin: 0;
        padding: 0;
        border-radius: 50%;
    }
    .file {
        position: relative;
        display: inline-block;
        background: #D0EEFF;
        border: 1px solid #99D3F5;
        border-radius: 4px;
        padding: 11px 15px;
        overflow: hidden;
        color: #1E88C7;
        text-decoration: none;
        text-indent: 0;
        line-height: 20px;
    }
    .file-mar {
        margin: 15px 0;
    }
    .file input {
        position: absolute;
        font-size: 100px;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }
    .file:hover {
        background: #AADFFD;
        border-color: #78C3F3;
        color: #004974;
        text-decoration: none;
    }
    .radio-inline {
        height: 44px;
        line-height: 44px;
        input[type="radio"] {
            height: 44px;
            line-height: 44px;
            margin: 0 5px 0 -20px;
        }
    }
    .jy-third {
        position: relative;
        width: 100%;
        height: auto;
        margin: 5px 0;
        padding: 10px 0 10px 50px;
        img {
            position: absolute;
            left: 0;
            top: 5px;
            width: 30px;
            height: 30px;
            display: block;
            margin: 0;
            padding: 0;
            border-radius: 50%;
        }
        .third-unbinding {
            display: none;
            margin-left: 20px;
        }
    }
}

.basics-3 {
    position: relative;
    width: 100%;
    min-height: 65px;
    height: auto;
    padding: 10px 100px 10px 200px;
    .file {
        position: absolute;
        right: 0;
        top: 10px;
    }
}

.line {
    width: 100%;
    height: 1px;
    background-color: @gray;
    margin: 50px 0;
}

.msg-content {
    min-height: 600px;
}

.jy-login-table {
    .wh(400px, auto);
    margin: 0 auto;
    padding: 25px;
}

.jy-login-logo {
    box-sizing: border-box;
    display: block;
    .wh(100px, 100px);
    .border-radius(50%);
    border: 1px solid @white;
    margin: 0 auto;
    padding: 1px;
}

.form {
    position: relative;
    display: block;
    background-color: @white;
    padding: 5px 25px 35px;
    margin-top: 25px;
    .border-radius(3px);
    input {
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid @gray;
        box-shadow: none !important;
        .border-radius(0) !important;
        color: @dgray;
    }
    input[type=checkbox] {
        background-color: @white;
        border: 1px solid @gray;
    }
}

.regist-btn {
    position: absolute !important;
    right: 25px;
    bottom: -35px;
    left: 25px;
    button {
        line-height: 18px;
    }
}

.form-group {
    position: relative;
}

.form-group-t {
    margin-bottom: 15px;
    a {
        float: left;
        display: block;
        .wh(50%, 50%);
        line-height: 50px;
        text-align: center;
        color: @dgray;
    }
}

.sign-up-msg {
    font-size: 12px;
    text-align: center;
}

.active {
    color: #4cd964 !important;
    border-bottom: 1px solid #4cd964;
}

.form-icon {
    position: relative;
    padding-left: 50px!important;
}

.img-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    .wh(18px, 18px);
    z-index: 99;
}

.jy-login-content {
    box-sizing: border-box;
    padding: 50px 0 0 0;
    .jy-login-banner {
        .wh(100%, auto);
    }
}

.jy-third-part {
    text-align: center;
    padding: 40px 25px;
    button {
        display: inline-block;
        .wh(60px, 60px);
        line-height: 18px;
        .font(14px, center, @white);
        background-repeat: no-repeat;
        background-size: 40px 40px;
        background-position: center top;
        padding: 30px 0 0 0;
        margin-right: 10px;
        .border-radius(50%);
    }
    span {
        position: relative;
        display: block;
        font-size: 14px;
        color: #555555;
        margin-bottom: 11px;
        &:after {
            content: "";
            display: block;
            position: absolute;
            top: 10px;
            right: 5px;
            .wh(30%, auto);
            border-top: 1px solid #555555;
        }
        &:before {
            content: "";
            border-top: 1px solid #555555;
            display: block;
            position: absolute;
            .wh(30%, auto);
            top: 10px;
            left: 5px;
        }
    }
    .sina {
        background-image: url(../img/sina.png);
    }
    .qq {
        background-image: url(../img/qq.png);
    }
    .wechat {
        background-image: url(../img/wecat.png);
    }
}

.jy-regist {
    margin-top: 20px;
    span {
        display: inline-block;
    }
}

.auto-code {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
}

//富文本编辑器
.container-height {
    height: 100%;
    .back-home-div {
        width: 100%;
        height: auto;
        padding: 15px;
        a {
            color: @white;
        }
        span {
            color: @white;
            margin-right: 10px;
        }
        .back-home {
            width: 100%;
            height: auto;
            line-height: 16px;
            font-size: 16px;
            padding: 15px;
            color: #00C4FF;
            background-color: transparent;
            border: 1px solid #00C4FF;
            border-radius: 5px;
            text-align: center;
            opacity: .8;
            &:hover {
                opacity: 1;
            }
        }
    }
    .back-home-center {
        width: 100%;
        height: auto;
        padding: 15px;
        span {
            margin-right: 10px;
        }
        .back-home {
            width: 100%;
            height: auto;
            line-height: 16px;
            font-size: 16px;
            padding: 15px;
            color: #00C4FF;
            background-color: transparent;
            border: 1px solid #00C4FF;
            border-radius: 5px;
            text-align: center;
            opacity: .8;
            &:hover {
                opacity: 1;
            }
        }
    }
    //左侧文章列表
    .ul-left {
        margin: 0;
        padding: 0;
        li {
            position: relative;
            list-style: none;
            width: 100%;
            height: 50px;
            padding-left: 10px;
            border-left: 4px solid transparent;
            a {
                display: block;
                line-height: 50px;
                color: @white;
                overflow: hidden;
            }
            span {
                position: absolute;
                right: 10px;
                height: 50px;
                line-height: 50px;
                color: #C0C0C0;
            }
            &:hover {
                background-color: #646464;
            }
        }
        .li-active {
            border-left: 4px solid #00C4FF;
            background-color: #646464;
        }
    }
    //中间文章列表
    .ul-center {
        margin: 0;
        padding: 0;
        li {
            position: relative;
            list-style: none;
            width: 100%;
            height: 80px;
            padding-left: 10px;
            border-left: 4px solid transparent;
            a {
                display: block;
                line-height: 80px;
                overflow: hidden;
            }
            span {
                position: absolute;
                right: 10px;
                height: 80px;
                line-height: 80px;
                color: #C0C0C0;
            }
            &:hover {
                background-color: #ececec;
            }
        }
        .li-active {
            border-left: 4px solid #00C4FF;
            background-color: #ececec;
        }
    }
    .jy-set-left {
        height: 100%;
    }
    .jy-set-left {
        height: 100%;
        overflow: auto;
    }
    .jy-set-center {
        height: 100%;
        border-right: 1px solid @gray;
        overflow: auto;
    }
    .jy-set-right {
        position: relative;
        height: 100%;
        overflow: auto;
        input {
            position: absolute;
            top: 0;
            border: none;
            width: 100%;
            height: 50px;
            padding: 0 15px;
            outline: none;
            font-size: 18px;
            font-weight: bold;
            z-index: 999;
        }
        button{
            position: absolute;
            top: 15px;
            right: 15px;
            width: auto;
            z-index: 999;
        }
        .script {
            box-sizing: border-box;
            position: relative;
            width: 100%;
            height: 80%;
            padding-top: 50px;
        }
    }
}

//文章详情
.jy-detail-content {
    width: 620px;
    height: auto;
    margin: 0 auto;
    >img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }
}

.jy-detail-user {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 70px;
    a {
        display: block;
        height: 25px;
        line-height: 25px;
    }
    img {
        position: absolute;
        left: 0;
        top: 0;
        display: block;
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
    span {
        color: @gray;
        line-height: 25px;
    }
    button {
        position: absolute;
        right: 0;
        top: 7px;
        height: 35px;
        line-height: 15px;
        color: #FFFFFF;
        padding: 10px 15px;
        background-color: #07FF54;
        border: none;
        border-radius: 5px;
    }
}

.jy-user-card {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    background-color: #F8F8F8;
    padding: 15px;
}

.jy-supporter {
    height: 50px;
    text-align: center;
    margin: 20px 0;
    .jy-supporter-list {
        list-style: none;
        display: inline-block;
        padding: 0;
        margin: 0;
        li {
            display: inline-block;
        }
        .avatar {
            display: block;
            width: 40px;
            height: 40px;
            img {
                width: 100%;
                height: 100%;
                border: 1px solid #ddd;
                border-radius: 50%;
            }
        }
    }
}

.jy-comment-content {
    width: 620px;
    height: auto;
    margin: 0 auto;
}

.jy-send-comment {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 0 0 50px;
    img {
        position: absolute;
        left: 0;
        top: 0;
        display: block;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    textarea {
        width: 100%;
        height: 100px;
        resize: none;
        border-radius: 5px;
        padding: 15px;
        outline: none;
    }
}

.comment-list {
    margin: 0;
    padding: 0;
    li {
        list-style: none;
        display: block;
        p {
            padding: 15px 0;
            margin-bottom: 0;
        }
    }
    .btn-more{
        margin-bottom: 15px;
    }
    .btn-more>a {
        float: left;
        display: block;
        width: 5em;
        opacity: .7;
        &:hover {
            opacity: 1;
        }
    }
    .comment-reply {
        width: 100%;
        border-left: 4px solid @gray;
    }
    .comment-reply-user {
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px 0 15px 15px;
        p {
            padding: 0;
            a {
                display: inline-block;
                height: 25px;
                line-height: 25px;
                color: #007AFF;
            }
        }
        a {
            color: @gray;
            &:hover {
                color: #555555;
            }
        }
        span {
            line-height: 25px;
        }
        textarea{
            display: block;
            width: 100%;
            height: 100px;
            resize: none;
            outline: none;
            margin: 15px 0;
            padding: 15px;
            border-radius: 5px;
        }
    }
}
.mar-left{
    margin-left: 15px;
}
.dashed {
    height: 1px;
    border: none;
    border-top: 1px dashed @gray;
}

footer {
    .wh(100%, auto);
    padding: 50px 0 20px 0;
    a {
        .font(12px, center, #888888);
    }
    i {
        .font(12px, center, #888888);
        font-weight: bold;
        padding: 0 5px;
    }
    .icp {
        .wh(100%, auto);
        .font(12px, left, @gray);
        padding: 10px 40% 0 0;
        img {
            .wh(auto, 20px);
        }
    }
}